﻿<%@ Page Language="C#" MasterPageFile="~/MasterForum.master" AutoEventWireup="true" CodeFile="admin.aspx.cs" Inherits="src_admin" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="/FORUMDEFINITIVO/css/forum.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div id="main">
        <div id="left-part">
            <%
                String scelta = Request.QueryString["scelta"];
            %>
            <h1>Admin</h1>
            <ul id="subnavi">
                <% Response.Write("<li"); if (scelta == "agCat" || scelta == null) Response.Write(" class=\"active\" "); else Response.Write(""); %>><a
                    href="?scelta=agCat">Aggiungi Categoria</a></li>
            </ul>
            </div>
            
            <div id="right-part">
           
            <% if (scelta == "agCat" || scelta == null)
               { %> 
               Nome categoria: <asp:TextBox ID="TBCat" runat="server"></asp:TextBox>
                <asp:Button ID="BInserici" runat="server" Text="Inserisci" 
                    onclick="BInserici_Click" />
               
               <%} %> 
            
            
          
            </div>
            </div>
</asp:Content>